<?

require_once("/var/www/html/new/com.inc.php");
include("class/Member.php");
include("common/page.php");
include("common/prodField.php");
$lid=abs($_REQUEST['lid']);
$did=abs($_REQUEST['did']);
$str="select * from uu_land where id=$lid";
$GLOBALS['le']->query($str);
$info=$GLOBALS['le']->fetch_assoc();
$jdjj=htmlspecialchars_decode($info['bhjq']);
$jdjj=strip_tags($jdjj);
$jdjj=mbsubstr($jdjj,300,"...");
if(!trim($jdjj)) $jdjj=$info['jdjj'];
$ptype=$info['p_type'];
$hTitle="产品详情";

$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
$pros=array();

if($did){
	$m=new Member($s,$did);
}else{
	$str="select apply_did from uu_products where contact_id=".$info['id'];
	$GLOBALS['le']->query($str);
	$GLOBALS['le']->fetch_assoc();
	$apply_did=$GLOBALS['le']->f("apply_did");
	$m=new Member($s,$apply_did);

}

$pros=$m->salePros($lid);
include("tpl/scenicDetail_san.tpl");
?>
	